﻿@if (Request.IsAuthenticated)
{
    <text>
        <div style="width: auto; background-color: #228b22;">
        Hello,
        @using (Html.BeginForm("Logout", "Account", FormMethod.Post, new {id = "logoutForm"}))
        {
            @Html.AntiForgeryToken()
            <a href="javascript:document.getElementById('logoutForm').submit()">Sign out</a>
        }
        </div>
    </text>
}
else
{
  <div style="width: auto; background-color: #728ea7;">
  @Html.ActionLink("Register", "Register", "Account")
  <span> | </span>
  @Html.ActionLink("Sign In", "Login", "Account")
  </div>
}